package com.cci.kangdao.fieldService.aop.model;

/**
 * @author William Du
 * @date 2019/7/16
 */
public class ChannelThreadLocal {

    private static final ThreadLocal<Long> LOCAL_CHANNEL = new ThreadLocal<>();

    public static void set(Long request) {
        LOCAL_CHANNEL.set(request);
    }

    public static Long get() {
        return LOCAL_CHANNEL.get();
    }

    public static void clear() {
        LOCAL_CHANNEL.remove();
    }

}
